package com.lantosec.hmrp.modules.warning.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lantosec.hmrp.modules.warning.entity.WarningNotifier;
import com.lantosec.hmrp.modules.warning.mapper.WarningNotifierMapper;
import com.lantosec.hmrp.modules.warning.service.IWarningNotifierService;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 预警通知人 服务实现类
 * </p>
 *
 * @author AutoCode
 * @since 2020-05-20
 */
@Service
@Primary
@Log4j2
public class WarningNotifierServiceImpl extends ServiceImpl<WarningNotifierMapper, WarningNotifier> implements IWarningNotifierService {
    @Override
    public List<String> getUserId(String notifierDeptId) {
        return baseMapper.getUserId(notifierDeptId);
    }

    @Override
    public List<String> getUserList(String ruleId) {
        return baseMapper.getUserList(ruleId);
    }

    @Override
    public List<String> getUserByRoleId(String notifierRoleId) {
        return baseMapper.getUserByRoleId(notifierRoleId);
    }

    @Override
    public List<String> getReportedUserList(String ruleId) {
        return baseMapper.getReportedUserList(ruleId);
    }
}
